package com.codeazur.as3swf.data.actions
{
   public class ActionExecutionContext
   {
       
      
      protected var _actions:Vector.<IAction>;
      
      protected var _cpool:Array;
      
      public var labelCount:uint;
      
      public var endLabel:String;
      
      public function ActionExecutionContext(param1:Vector.<IAction>, param2:Array, param3:uint)
      {
         var _loc5_:IAction = null;
         var _loc6_:IActionBranch = null;
         super();
         this._actions = param1;
         this._cpool = param2;
         this.labelCount = param3;
         this.endLabel = null;
         var _loc4_:uint = 0;
         while(_loc4_ < param1.length)
         {
            _loc5_ = param1[_loc4_];
            if(_loc5_ is IActionBranch)
            {
               _loc6_ = _loc5_ as IActionBranch;
               if(_loc6_.branchIndex == -1)
               {
                  this.endLabel = "L" + (param3 + 1);
                  break;
               }
            }
            _loc4_++;
         }
      }
      
      public function get actions() : Vector.<IAction>
      {
         return this._actions;
      }
      
      public function get cpool() : Array
      {
         return this._cpool;
      }
   }
}
